package com.base.service.impl;

import com.base.mapper.voipmapper.RebateOrdersMapper;
import com.base.po.voip.RebateOrders;
import com.base.service.RebateOrdersService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service("rebateOrdersService")
public class RebateOrdersServiceImpl implements RebateOrdersService {

    @Autowired
    private RebateOrdersMapper rebateOrdersMapper;

    @Override
    public int deleteByPrimaryKey(String tradeId) {
        return rebateOrdersMapper.deleteByPrimaryKey(tradeId);
    }

    @Override
    public int insert(RebateOrders record) {
        return rebateOrdersMapper.insert(record);
    }

    @Override
    public int insertSelective(RebateOrders record) {
        return rebateOrdersMapper.insertSelective(record);
    }

    @Override
    public RebateOrders selectByPrimaryKey(String tradeId) {
        return rebateOrdersMapper.selectByPrimaryKey(tradeId);
    }

    @Override
    public int selectByCount(RebateOrders record) {
        return rebateOrdersMapper.selectByCount(record);
    }

    @Override
    public List<RebateOrders> selectByAll(RebateOrders record, Page page) {
        return rebateOrdersMapper.selectByAll(record, page);
    }

    @Override
    public List<RebateOrders> selectAll(Page page, String tradeId, Byte tkStatus, String relationId, String specialId) {
        return rebateOrdersMapper.selectAll(page, tradeId, tkStatus, relationId, specialId);
    }

    @Override
    public BigDecimal selectByMoney(RebateOrders record) {
        return rebateOrdersMapper.selectByMoney(record);
    }

    @Override
    public int updateByPrimaryKeySelective(RebateOrders record) {
        return rebateOrdersMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RebateOrders record) {
        return rebateOrdersMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPid(String pid) {
        return rebateOrdersMapper.updateByPid(pid);
    }

    @Override
    public int updateByUserId(String userid) {
        return rebateOrdersMapper.updateByUserId(userid);
    }

    @Override
    public int updateBySpecialId(String specialId) {
        return rebateOrdersMapper.updateBySpecialId(specialId);
    }

    @Override
    public int countAll(String tradeId, Byte tkStatus) {
        return rebateOrdersMapper.countAll(tradeId, tkStatus);
    }

    @Override
    public RebateOrders countByShopAll(String shopid, String tradeId, String mobile) {
        return rebateOrdersMapper.countByShopAll(shopid, tradeId, mobile);
    }

    @Override
    public List<RebateOrders> selectByShopAll(Page page, String shopid, String tradeId, String mobile) {
        return rebateOrdersMapper.selectByShopAll(page, shopid, tradeId, mobile);
    }

    @Override
    public RebateOrders countByParentAll(String parentid, String tradeId, String mobile) {
        return rebateOrdersMapper.countByParentAll(parentid, tradeId, mobile);
    }

    @Override
    public List<RebateOrders> selectByParentAll(Page page, String parentid, String tradeId, String mobile) {
        return rebateOrdersMapper.selectByParentAll(page, parentid, tradeId, mobile);
    }
}
